﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mitek.Models.Article
{
   public class Comments : ModelBase
    {
        /// <summary>
        /// 评论ID
        /// </summary>
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 评论标题
        /// </summary>
        [DisplayName("评论标题")]
        [MaxLength(50)]
        public string Title { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        [Required]
        [DisplayName("评论内容")]
        public string Content { get; set; }

        /// <summary>
        /// 文章ID
        /// </summary>
        public int ArticleID { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public int CreateUserID { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
